package com.sq.universe.system.dao;

import com.sq.universe.base.dao.BaseDao;
import com.sq.universe.system.entity.UserRoleEntity;
import org.springframework.stereotype.Repository;


@Repository
public interface UserRoleDao extends BaseDao<UserRoleEntity> {

    /**
     * 根据Id获取角色
     * @param userId
     * @return
     */
    public String getRolesByUserid(Integer userId);

    /**
     * 根据Id获取所属角色
     * @param userId
     * @return
     */
    public String getRoleNamesByUserid(Integer userId);

}
